package com.goozao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动程序
 *
 * @author Goozao
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,
        org.activiti.spring.boot.SecurityAutoConfiguration.class,
        org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
@ComponentScan(value = { "com.ruoyi", "com.goozao" })
@MapperScan(basePackages = {"com.goozao.**.mapper" })
public class VcApplication {

	public static void main(String[] args) {
        System.setProperty("spring.devtools.restart.enabled", "false"); //禁用热修补
        try {
            SpringApplication.run(VcApplication.class, args);
            System.out.println("===========  汉华PLM系统管理平台启动成功  ===========\n");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
